<?php
	include('header.php');
	require_once './class/class_onlinestore.php';
	$storeInfo = array();
	if (class_exists("OnlineStore"))
	{
		if(isset($_SESSION['currentStore']))
			$Store = unserialize($_SESSION['currentStore']);
		else
		{
			$Store = new OnlineStore();
		}
		//$Store->setStoreID($storeID);
		$storeInfo = $Store->getStoreInformation();
		
	}
	else
	{
		$ErrorMsgs[] = "The OnlineStore class is not available!";
		$Store = NULL;
	}
?>

		<div class="container">
			<h1><?php echo htmlentities($storeInfo['name']); ?></h1>
			<h2>Customer Invoice</h2>

			<?php
				if (isset($_SESSION['customerID'])) {
					# code...
					echo "<p>Name: ".$cust_data['firstName']."</p>\n";
				//echo "<br>\n";
				echo "<p>Surname: ".$cust_data['lastName']."</p>";
				}
				
				$Store->invoice();
			?>
		</div>
<?php include('footer.php'); ?>
	 